#ifndef NOVELPARSEWORKER_H
#define NOVELPARSEWORKER_H

#include <QObject>
#include <QFile>
#include <QTextStream>
#include <QRegularExpression>
#include <QDir>
#include <QDebug>
#include <QStandardPaths>
#include "../utils/md5utils.h"
#include "../dao/noveldao.h"
#include "../dao/chapterdao.h"
#include "../entity/novelinfo.h"
#include "../entity/chapterinfo.h"

class NovelParseWorker : public QObject {
    Q_OBJECT
public:
    explicit NovelParseWorker(NovelDao *novelDao, ChapterDao *chapterDao, QObject *parent = nullptr);

    virtual ~NovelParseWorker() override;

public
    slots:
            void parseNovel(const QString &filePath,const QString &novelId);

private:
    NovelDao *m_novel_dao;
    ChapterDao *m_chapter_dao;

};

#endif
